FROM node:16-alpine
LABEL authors="tangjinghang"

WORKDIR /var/www/html

ADD ./ /var/www/html

RUN npm config set registry "http://registry.npm.taobao.org/"

RUN npm install -g pnpm@7.1.0 \
    && cd /var/www/html \
    && pnpm install

CMD ["pnpm", "dev", "--host"]
EXPOSE 3000